<template>
	<view class="class layout pageBg">
		<custom-nav-bar title="分类"></custom-nav-bar>
		<view class="classify">
			<theme-item v-for="item in classifyList" :key="item._id" :item="item"></theme-item>
		</view>
	</view>
</template>

<script setup>
	import { ref } from 'vue';
	import api from '@/api/api.js';
	//分类列表
	const classifyList = ref([]);
	//获取分类列表
	api.getClassify( {pageSize:15}).then(resp=> classifyList.value = resp.data.data);
	
</script>

<style lang="scss" scoped>
.class{
	.classify{
		display: grid;
		grid-template-columns: repeat(3,1fr);
		gap:15rpx;
	}
}
</style>
